package com.dd.service;


import com.dd.dao.UserMapper;
import com.dd.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    UserMapper userMapper;

    public User selectuser(String uname, String upwd) {
        return userMapper.selectuser(uname, upwd);
    }

    public int adduser(User user) {
        return userMapper.adduser(user);
    }

    public User selectByname(String uname) {
        return userMapper.selectByname(uname);
    }

    public int updateuser(User user) {
        return userMapper.updateuser(user);
    }

    public List<String> selectusername() {
        return userMapper.selectusername();
    }

    public User selectname(String name) {
        return userMapper.selectname(name);
    }

}
